package com.example.nbaplayerssb.service;



import com.example.nbaplayerssb.pojo.Clubs;
import com.example.nbaplayerssb.pojo.Players;

import java.util.List;


public interface PlayersService {
    /**
     * 查询球员信息(模糊查询)
     * @return
     */
    List<Players> getList(String pname, Integer cid);


    /**
     * 查询球队信息
     * @return
     */
    List<Clubs> getClubs(Clubs clubs);


    /**
     * 新增
     */
    Integer getAdd(Players players);


    /**
     * 删除
     */
    Integer getDelete(Integer id);


    /**
     * 修改
     */
    Integer update(Players players);


    /**
     * 查询单个
     */
    Players getById(Integer id);

}
